package lpg;

class RuleDefinition
{
    RuleDefinition(int lhsIndex, int separatorIndex, int endRhsIndex)
    {
        this(lhsIndex, separatorIndex, endRhsIndex, 0, 0);
    }

    RuleDefinition(int lhsIndex, int separatorIndex, int endRhsIndex,
            int classnameIndex, int arrayElementTypeIndex)
    {
        this.lhsIndex               = lhsIndex;
        this.separatorIndex         = separatorIndex;
        this.endRhsIndex            = endRhsIndex;
        this.classnameIndex         = classnameIndex;
        this.arrayElementTypeIndex  = arrayElementTypeIndex;
    }

    final int lhsIndex;
    final int separatorIndex;
    final int endRhsIndex;
          int classnameIndex;
          int arrayElementTypeIndex;

}
